<div id="append_parent"></div>
<?php if ($this->_var['user_info']): ?>
<font style="position:relative; top:10px;">
<?php echo $this->_var['lang']['hello']; ?>，<font class="f4_b"><?php echo $this->_var['user_info']['username']; ?></font>, <?php echo $this->_var['lang']['welcome_return']; ?>！
<a href="user.php"><?php echo $this->_var['lang']['user_center']; ?></a>|
 <a href="user.php?act=logout"><?php echo $this->_var['lang']['user_logout']; ?></a>
</font>
<?php else: ?>
 <?php echo $this->_var['lang']['welcome']; ?>&nbsp;&nbsp;&nbsp;&nbsp;
 <a href="user.php"><img src="themes/default/images/bnt_log.gif" /></a>
 <a href="user.php?act=register"><img src="themes/default/images/bnt_reg.gif" /></a>
<?php endif; ?>


<div class="logoBox">
    	<div class="logo"><a href="index.php">TGmarket</a></div>
        <div class="welcome">
        	<ul class="login_list"> 
            <li> 丨 <a class="cart" href="flow.php"> (100)</a></li>
            <li class="shop">
                <a class="shop_a" href="user.php?act=order_list" title="">我的订单</a>
                <ul class="shop_sub" style="display:none;">
                <li><a href="user.php?act=order_list" title="我的订单"><em>&gt;</em> 我的订单</a></li>
                <li><a href="user.php?act=collection_list" title="我的收藏"><em>&gt;</em> 我的收藏</a></li>
                <li><a href="user.php" title="账号信息"><em>&gt;</em> 账号信息</a></li>
                </ul>     
            </li> 
            <li> 丨 <a class="favorite" href="http://www.gumeipost.com" title="TGmarket" rel="sidebar" onclick="javascript:window.external.AddFavorite('http://www.gumeipost.com', 'TGmarket');return false;">加入收藏</a> 丨 </li>
            <li><a href="agent.html" title="加盟代理">加盟代理</a></li>    
            <li><a href="user.php?act=register" title="会员注册">会员注册</a> 丨 </li>         
            <li class="login">
            <?php if ($this->_var['user_info']): ?>  
                <p class="tr" style=""><a class="f2" href="user.php"><?php echo $this->_var['user_info']['username']; ?></a> , <?php echo $this->_var['lang']['welcome_return']; ?> !  <a href="user.php?act=logout" title="Logout">Logout.</a><b>&nbsp; &nbsp;</b> </p>
                <?php else: ?>
            	<p>
                    <b class="f14">ID</b> <input name="" type="text" class="input" />
                    <b class="f14">PW</b> <input name="" type="text" class="input" />
                    <input name="" type="button" value="" class="loginBtn png" onclick="window.location.href('order.html')" />    
                    <a href="user.php?act=get_password" class="forgot png" title="Forgot password" ></a>   
                         
                </p>
              <?php endif; ?>  	
            </li>
            </ul>     
            <div class="searchBox">
                <input type="text" value="Search" onblur="if(this.value=='')this.value='Search';" onfocus="if(this.value=='Search')this.value='';" class="search fl" />
                <input type="submit" value="" class="button fr" onclick="window.location.href('search.html')" />
            </div>       
        </div>
        <div class="cb"></div>
    </div>
      